/******************************************************************************
*
*   Filename:  mw_schm_trm_isr.c 
*
*   Created_by: 
*       
*   Date_created: 
*
*   Description: Timer Interrupt handler for Scheduler
*
*
*******************************************************************************
*   Revision History:
*
*   Date          CQ#           Author    
*   MM-DD-YY      oem00000000   Initials   Description of change.
*   -----------   -----------   --------   ------------------------------------
******************************************************************************/

/******************************************************************************
*   Include Files
******************************************************************************/ 
#include    "mw_schm_trm_isr.h"

/******************************************************************************
*   Local Macro Definitions
******************************************************************************/ 

/******************************************************************************
*   Local Type Definitions
******************************************************************************/

/******************************************************************************
*   Local Function Declarations
/******************************************************************************

/******************************************************************************
*   Global Variable Definitions
******************************************************************************/
/* Module execution flag */
TYPE_BOOLEAN mngExecflag;

/* timer overflow counter */
T_UWORD measCounter;

/******************************************************************************
*   Static Variable Definitions
******************************************************************************/

/******************************************************************************
*   Global and Static Function Definitions
******************************************************************************/ 

/*****************************************************************************************************
*   Function: SCHM_Interrupt_Handler()
*
*   Description: This is the modulus PIT interrupt handler function that gets called
*                every 5msec.
*
*
*   Caveats:
*****************************************************************************************************/
void SCHM_Interrupt_Handler(void)
{
    /* Set flag so background will run */
    mngExecflag = TRUE;

}

/*****************************************************************************************************
*   Function: MEAS_TMR_Interrupt_Handler()
*
*   Description: This is the modulus PIT interrupt handler function that gets called
*                every 1 mks for measurement.
*
*
*   Caveats:
*****************************************************************************************************/
#ifdef ITBM_MEASUREMENT
void MEAS_TMR_Interrupt_Handler(void)
{
    /* Increment Counter */
    measCounter++;
 
    /*****************************************/
    /* clear the interrupt */
//    ITBM_hw_timerClearIntrpt(PIT_TIMER_CH1);
    /*****************************************/

}
#endif /*ITBM_MEASUREMENT*/

